package com.woniu.service.impl;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniu.adapter.MaterialAppAdapter;
import com.woniu.outlet.po.MaterialApplication;
import com.woniu.service.MatApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class MatApplicationServiceImpl implements MatApplicationService {
    @Autowired
    private MaterialAppAdapter materialAppAdapter;

    public List<MaterialApplication> getMaterialApplicationList(Date t1,Date t2) throws JsonProcessingException {
       return materialAppAdapter.getMaterialApplicationList(t1, t2);
    }

    @Override
    public MaterialApplication getMaterialApplicationByCode (String applicationCode) throws JsonProcessingException {
        return materialAppAdapter.getMaterialApplicationByCode(applicationCode);
    }
}
